Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire passkey autofill to UI #13051

Draft
wants to merge 16 commits into
base: passkey-window-creation
Choose a base branch
from

Conversation

abergs
Copy link
Member

@abergs abergs commented Jan 24, 2025

🎟️ Tracking

📔 Objective

Wire the FIDO2 autofill integration with the UI.

TODO:

  • Rename the /passkeys path to fido2
  • remove usage of messagingservices (only used for dev-debugging)
  • Cleanup/hide the swift UI popup "autofill-extension hello"

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@abergs abergs changed the title Use Messaging service to loadUrl Wire passkey autofill to UI Jan 24, 2025
Copy link
Contributor

github-actions bot commented Jan 24, 2025

Logo
Checkmarx One – Scan Summary & Detailsa2de1e92-d9ef-4aed-a0f7-2b3637a1397f

New Issues (25)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
CRITICAL CVE-2025-0611 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0434 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0436 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0437 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0438 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0443 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0447 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0451 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0612 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0762 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0995 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0996 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0997 Npm-electron-33.2.1 Vulnerable Package
HIGH CVE-2025-0998 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0435 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0439 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0440 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0441 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0442 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0444 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0445 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0446 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-0448 Npm-electron-33.2.1 Vulnerable Package
MEDIUM CVE-2025-22150 Npm-undici-6.11.1 Vulnerable Package
MEDIUM CVE-2025-24010 Npm-vite-5.1.8 Vulnerable Package
Fixed Issues (563)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
MEDIUM Angular_Improper_Type_Pipe_Usage /apps/browser/src/autofill/popup/fido2/fido2-use-browser-link-v1.component.html: 1
MEDIUM Angular_Improper_Type_Pipe_Usage /apps/web/src/app/layouts/product-switcher/product-switcher.component.html: 1
MEDIUM Angular_Improper_Type_Pipe_Usage /libs/components/src/navigation/nav-divider.component.html: 1
MEDIUM Angular_Improper_Type_Pipe_Usage /apps/browser/src/autofill/popup/fido2/fido2-use-browser-link.component.html: 1
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1166
MEDIUM Client_Privacy_Violation /libs/tools/generator/components/src/credential-generator-history.component.html: 3
MEDIUM Client_Privacy_Violation /libs/tools/generator/components/src/username-generator.component.html: 3
MEDIUM Client_Privacy_Violation /libs/components/src/color-password/color-password.component.ts: 17
MEDIUM Client_Privacy_Violation /libs/components/src/color-password/color-password.component.ts: 31
MEDIUM Client_Privacy_Violation /libs/vault/src/components/password-history-view/password-history-view.component.html: 6
MEDIUM Client_Privacy_Violation /apps/web/src/app/tools/password-generator-history.component.html: 11
MEDIUM Client_Privacy_Violation /libs/vault/src/components/password-history-view/password-history-view.component.html: 6
MEDIUM Client_Privacy_Violation /apps/web/src/app/tools/password-generator-history.component.html: 11
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 40
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 50
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 86
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 130
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 38
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1237
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1221
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1219
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1220
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 581
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 565
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1074
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1074
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1074
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 670
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 693
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 671
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 680
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 679
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 673
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 665
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 664
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 663
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 661
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 662
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1238
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1238
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1045
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1220
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 515
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1239
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1221
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 503
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 497
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/overlay/inline-menu/pages/list/autofill-inline-menu-list.ts: 1171
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health-members.component.html: 45
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health-members.component.html: 55
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health-members.component.html: 50
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health-members.component.html: 50
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 707
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 558
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 414
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 410
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 2900
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 138
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 212
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 733
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 2795
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 454
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 437
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 1667
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 589
MEDIUM Client_Privacy_Violation /apps/browser/src/autofill/background/overlay.background.ts: 1742

More results are available on the CxOne platform

Copy link
Contributor

@coroiu coroiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the right track

//allowedCredentials: requestParameters.allowedCredentials,
//extensionInput: requestParameters.extensionInput,
clientDataHash: requestParameters.clientDataHash,
userVerification: userVerification
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coroiu The PasskeyAssertionRequest rust type probably needs to be tweaked or a new type introduced to support this flow. Since you did the OG work on this, do you have time to look into it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually Dani did this specific part, I wrote the Obj-C code, but we can all help you out (including @coltonhurst) :) I'll take a quick look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants